-define(CONFIG(Key,Config),begin {value,{Key,Val}}=lists:keysearch(Key, 1, Config),Val end).
-define(CT_LOG(Category,Format,Args),ct:log(Category, Format, Args)).
-define(CT_LOG_INFO(Format,Args),ct:log(info, Format, Args)).
-define(CT_LOG_TRACE(Format,Args),ct:log(trace, Format, Args)).
-define(CT_LOG_ERR(Format,Args),ct:log(error, Format, Args)).
